--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scripts/docker/build-frontend.sh e41daa5b65e07a5baa1aaad32d97f90482f1cd1c (e41daa5b) Text, 874 B
T8b949e#!/bin/sh
T8b949e# SPDX-License-Identifier: 0BSD
T8b949e# Build MeshChatX frontend assets inside a Node image stage.
T8b949e# Expects WORKDIR with package manifests, patches, scripts, docs, and frontend tree.
Tffa657set -eu
mkdir -p /tmp/go-cache /tmp/go-tmp
Tffa657export Te6edf3GOCACHETff7b72=Ta5d6ff"Tffd700${Te6edf3GOCACHETff7b72:-Tb4b4b4/tmp/go-cacheTffd700}Ta5d6ff"
Tffa657export Te6edf3GOTMPDIRTff7b72=Ta5d6ff"Tffd700${Te6edf3GOTMPDIRTff7b72:-Tb4b4b4/tmp/go-tmpTffd700}Ta5d6ff"
Te6edf3PNPM_VERSIONTff7b72=Ta5d6ff"Tffd700${Te6edf3MESHCHATX_PNPM_VERSIONTff7b72:-Te6edf311Tb4b4b4.1.2Tffd700}Ta5d6ff"
npm install -g Ta5d6ff"Ta5d6ffpnpm@Tffd700${Te6edf3PNPM_VERSIONTffd700}Ta5d6ff"
pnpm config Tffa657set verify-store-integrity Tffa657true
pnpm install --frozen-lockfile
Te6edf3MESHCHATX_REQUIRE_VISUALISER_WASMTff7b72=T79c0ff1 pnpm run build-frontend
Tffa657test -s meshchatx/src/frontend/public/vendor/visualiser-wasm/visualiser.wasm
Tffa657test -s meshchatx/src/frontend/public/vendor/visualiser-wasm/wasm_exec.js
Tffa657test -s meshchatx/src/frontend/public/vendor/micron-parser-go/micron-parser-go.wasm
Tffa657test -s meshchatx/src/frontend/public/vendor/micron-parser-go/wasm_exec.js
pnpm run build-docs
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────